import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

// 定义路由规则表
const routes = [
  {
    path: '/login',
    component: () => import('@/views/login')
  }
]

const router = new VueRouter({
  mode: 'history',
  // 访问当前应用地址它的前缀 / ==> http://xx.com/login
  // /aa => http://xx.com/aa/login
  base:'/',
  routes
})

export default router
